{% extends '::base.html.twig' %}

{% block body -%}
    <h1>Editar Rubros</h1>
    <p>Codigo: {{entity.id }}</p>

    <form action="{{ path('rubros_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
        <input type="hidden" name="_method" value="PUT" />
        {{ form_widget(edit_form) }}
        <p>
            <button type="submit">Guardar</button>
        </p>
        
    </form>
      
    <ul class="record_actions">
        <li>
            <a href="{{ path('rubros') }}">Lista de Rubros </a>        
        </li>
    
        <li>
            <form action="{{ path('rubros_delete', { 'id': entity.id }) }}" method="post">
                <input type="hidden" name="_method" value="DELETE" />
                {{ form_widget(delete_form) }}
                <button type="submit">Borrar</button>
            </form>
        </li>
    </ul>
{% endblock %}
